package com.niiwoo.civet.mobile.vo.request.user;

import com.niiwoo.civet.mobile.vo.common.LinkManInfoVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @Description: 用户个人信息--基本信息
 * @Author:wuke
 * @Date:2017/10/11
 */
@Setter
@Getter
@ApiModel(description = "用户个人信息--基本信息")
public class UserPersonalRequestVO {

    @NotNull(message = "学历不能为空")
    @ApiModelProperty(value = "学历层次(1-中专及以下，2-大专，3-本科，4-研究生，5-博士及以上)", required = true)
    private Byte educationLevel;

    @NotNull(message = "婚姻状况不能为空")
    @ApiModelProperty(value = "婚姻状况(0-其他，1-未婚，2-已婚，3-离异)", required = true)
    private Byte maritalStatus;

    @NotNull(message = "邮箱不能为空")
    @Size(min = 1,max = 100,message = "用户邮箱必须在1到100个字符之内")
    @ApiModelProperty(value = "用户邮箱", example="123456@qq.com", required = true)
    private String email;

    @NotNull(message = "居住地址包括省、市、区信息")
    @Size(min = 1,message = "居住地址包括省、市、区信息")
    @ApiModelProperty(value = "现居住地省", example="朗山路中", required = true)
    private String livingProvince;

    @NotNull(message = "居住地址包括省、市、区信息")
    @Size(min = 1,message = "居住地址包括省、市、区信息")
    @ApiModelProperty(value = "现居住地市", example="深圳市", required = true)
    private String livingCity;

    @NotNull(message = "居住地址包括省、市、区信息")
    @Size(min = 1,message = "居住地址包括省、市、区信息")
    @ApiModelProperty(value = "现居住地区", example="南山区", required = true)
    private String livingArea;

    @NotNull(message = "详细地址不能为空")
    @Size(min = 1,max = 100,message = "详细地址必须在1到100个字符之内")
    @ApiModelProperty(value = "现居住详细地址", example="天明科技大厦11楼", required = true)
    private String livingAddress;

    @Valid
    @NotNull(message = "联系人不能为空")
    @Size(min = 2,max = 2,message = "联系人不能为空")
    @ApiModelProperty(value = "联系人")
    private List<LinkManInfoVO> linkManInfoList;

}
